-- GENERATED SPELL FOR [Twilight Loreseeker] --


function spell0_4812(pUnit, Event) --@Enlarge,n/a--
pUnit:FullCastSpellOnTarget(8365,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4812', 12000, 1)
end

function spell1_4812(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(18972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4812', 20265, 1)
end

function Sorts_4812(pUnit, Event)
local choix_sorts_4812 = math.random(0, 1)
if choix_sorts_4812 == 0 then
pUnit:RegisterEvent('spell0_4812', 1, 1)
end
if choix_sorts_4812 == 1 then
pUnit:RegisterEvent('spell1_4812', 1, 1)
end
end

function mob4812_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4812', math.random(1500, 3000), 1)
end

function mob4812_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4812_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4812_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4812, 1, 'mob4812_Action')
RegisterUnitEvent(4812, 2, 'mob4812_Leave')
RegisterUnitEvent(4812, 3, 'mob4812_Kill')
RegisterUnitEvent(4812, 4, 'mob4812_Die')
